package com.shenmazong.servereduresume.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 简历模板表:闫瑞
 * @TableName tb_srwp
 */
@TableName(value ="tb_srwp")
@Data
public class TbSrwp implements Serializable {
    /**
     * 简历模板id
     */
    @TableId(value = "srwp_id",type = IdType.ASSIGN_ID)
    private Long srwpId;

    /**
     * 简历名称
     */
    private String srwpName;

    /**
     * 简历模板路径
     */
    private String srwpUrl;

    /**
     * 简历介绍
     */
    private String srwpRecommend;

    /**
     * 简历审核0未通过1通过
     */
    private Byte srwpAudit;

    /**
     * 创建人
     */
    private Long userId;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 修改时间
     */
    private Date updateTime;

    /**
     * 物理删除0未删除1删除
     */
    private Boolean deleteFlag;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TbSrwp other = (TbSrwp) that;
        return (this.getSrwpId() == null ? other.getSrwpId() == null : this.getSrwpId().equals(other.getSrwpId()))
            && (this.getSrwpName() == null ? other.getSrwpName() == null : this.getSrwpName().equals(other.getSrwpName()))
            && (this.getSrwpUrl() == null ? other.getSrwpUrl() == null : this.getSrwpUrl().equals(other.getSrwpUrl()))
            && (this.getSrwpRecommend() == null ? other.getSrwpRecommend() == null : this.getSrwpRecommend().equals(other.getSrwpRecommend()))
            && (this.getSrwpAudit() == null ? other.getSrwpAudit() == null : this.getSrwpAudit().equals(other.getSrwpAudit()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getDeleteFlag() == null ? other.getDeleteFlag() == null : this.getDeleteFlag().equals(other.getDeleteFlag()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getSrwpId() == null) ? 0 : getSrwpId().hashCode());
        result = prime * result + ((getSrwpName() == null) ? 0 : getSrwpName().hashCode());
        result = prime * result + ((getSrwpUrl() == null) ? 0 : getSrwpUrl().hashCode());
        result = prime * result + ((getSrwpRecommend() == null) ? 0 : getSrwpRecommend().hashCode());
        result = prime * result + ((getSrwpAudit() == null) ? 0 : getSrwpAudit().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getDeleteFlag() == null) ? 0 : getDeleteFlag().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", srwpId=").append(srwpId);
        sb.append(", srwpName=").append(srwpName);
        sb.append(", srwpUrl=").append(srwpUrl);
        sb.append(", srwpRecommend=").append(srwpRecommend);
        sb.append(", srwpAudit=").append(srwpAudit);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", deleteFlag=").append(deleteFlag);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}